package com.bo.mybasedemo.app;

import android.app.Application;

import com.bo.libnet.net.ApiNet;
import com.orhanobut.logger.AndroidLogAdapter;
import com.orhanobut.logger.Logger;

/**
 * Created by ZJB on 2018/1/31.
 *
 * @ copyright: iwhere chengdu technology
 */

public class App extends Application{

    @Override
    public void onCreate() {
        super.onCreate();
        netInit();
        loggerInit();
    }

    private void loggerInit() {
        Logger.addLogAdapter(new AndroidLogAdapter());
    }

    private void netInit() {
        ApiNet.getInstance().init();
    }
}
